//
//  HHAlertController.h
//  HHUIKit
//
//  Created by chasel. c on 2024/4/29.
//  alert弹窗

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface HHAlertController : UIViewController

/// 弹窗信息
@property (nonatomic, copy) NSString *message;


/// 弹窗
/// - Parameters:
///   - title: 标题
///   - message: 信息
///   - completion: 回调 0：取消
+ (HHAlertController *)showTitle:(nullable NSString *)title message:(nullable NSString *)message completion:(void (^_Nullable)(NSInteger index))completion;


/// 弹窗
/// - Parameters:
///   - title: 标题
///   - message: 信息
///   - cancelTitle: 取消按钮
///   - otherTitle: 其他按钮
///   - completion: 回调 回调 0：取消
+ (HHAlertController *)showTitle:(nullable NSString *)title message:(nullable NSString *)message cancelTitle:(nullable NSString *)cancelTitle otherTitle:(nullable NSString *)otherTitle completion:(void (^_Nullable)(NSInteger index))completion;

@end

NS_ASSUME_NONNULL_END
